




import datetime
import time

print(datetime.datetime.now())
print(datetime.datetime.now() + datetime.timedelta(3))#三天后
print(datetime.datetime.now() + datetime.timedelta(-3))#三天前
print(datetime.datetime.now() + datetime.timedelta(hours=3))#当天时间加3小时
print(datetime.datetime.now() + datetime.timedelta(minutes =30))#当天时间加3分钟
print(datetime.date.fromtimestamp(time.time()))#将时间戳转混成日期格式2020-02-12


